package com.wentao.thisService.mapper;

import java.util.*;
import com.wentao.thisService.model.*;
import org.apache.ibatis.annotations.Param;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Mapper;

@Mapper
@Repository
public interface OrderGoodsDao {

	public List<OrderGoodsEntity> Search(OrderGoodsEntity entity);
    public List<OrderGoodsEntity> SearchPage(@Param("entityItem") OrderGoodsEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void Update(@Param("entityItem") OrderGoodsEntity entity, @Param("valueItem") OrderGoodsEntity val);
    public void Insert(OrderGoodsEntity entity);
    
    public List<OrderGoodsEntity> SearchAut(OrderGoodsEntity entity);
    public List<OrderGoodsEntity> SearchPageAut(@Param("entityItem") OrderGoodsEntity entityItem, @Param("pageItem") PageEntity pageItem);
    public void UpdateAut(@Param("entityItem") OrderGoodsEntity entity, @Param("valueItem") OrderGoodsEntity val);
    
    public IntResultEntity Count(OrderGoodsEntity entity);
    public IntResultEntity CountAut(OrderGoodsEntity entity);


    public List<OrderGoodsEntity> SearchByOrderIdList(@Param("orderIdList") List<Long> orderIdList);
}